<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
if($_GET['t']){
	$t = $_GET['t'];
}else{
	$t = 1;
}
?>
<title><?=$t?>号窗口</title>
</head>

<body>
当前第<?=$t?>窗口
<a href="javascript:window.open('?t=<?=($t+1)?>', 'n<?=($t+1)?>', 'height=200,width=400');">新<?=($t+1)?>窗口</a><br />
<?php
for($i=0; $i<$t; $i++){
?>
<a href="javascript:window.open('?t=<?=($i+1)?>', 'n<?=($i+1)?>', 'height=200,width=400');">回到第<?=($i+1)?>窗口</a><br />
<?php
}
?>
<br />
</body>
</html>